arduinoLibDIR = /cygdrive/c/Program\ Files/arduino/1.04/libraries

clean	:
	rm bin/test/*.o
	rm bin/*.o
	
bin/plateConf.o	:	src/plateConf/plateConf.c
	gcc -c src/plateConf/plateConf.c  -o bin/plateConf.o -I inc/ -D PC
bin/plateConfTest.o	:	src/plateConf/test/plateConfTest.c
	gcc -c src/plateConf/test/plateConfTest.c -o bin/test/plateConfTest.o -I inc/ 
bin/plateConfTest	:	bin/plateConf.o	bin/plateConfTest.o	
	gcc bin/test/plateConfTest.o bin/plateConf.o -o bin/test/plateConfTest
runPlateConfTest	:	bin/plateConfTest
	bin/test/plateConfTest

runTest	:	runPlateConfTest
	
deployArd	:	
	mkdir deploy/ardLib/plateConf/ -p
	cp  -f src/plateConf/plateConf.c deploy/ardLib/plateConf/plateConf.cpp
	cp  -f inc/plateConf.h deploy/ardLib/plateConf/plateConf.h
	mkdir $(arduinoLibDIR)/plateConf/ -p
	cp -f deploy/ardLib/plateConf/* $(arduinoLibDIR)/plateConf/
	